package cn.wenhe9.novel.domain.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 用户发表评论
 * @author DuJinliang
 * 2022/5/20
 */
@Data
public class UserCommentVo {

    private Long userId;

    @NotBlank(message="小说ID不能为空！")
    private Long bookId;

    @NotBlank(message="评论不能为空！")
    @Length(min = 10,max = 512)
    private String commentContent;

}
